package com.asset.service.impl;
/**
 *@ClassName BookServiceImpl
 *@Author B21015118吴逸鑫
 *@Date 2022/6/9 18:59
 */
import com.asset.bean.PageData;
import com.asset.dao.dao.FinanceDao;
import com.asset.dao.impl.FinanceDaoImpl;
import com.asset.service.FinanceService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class FinanceServiceImpl implements FinanceService {
    public static FinanceDao bookDao =new FinanceDaoImpl();
    @Override
    public void add(HttpServletRequest request, HttpServletResponse response) {
        bookDao.add(request,response);
    }

    @Override
    public void findOne(HttpServletRequest request, HttpServletResponse response) {
        bookDao.findOne(request, response);
    }

//    @Override
//    public void findAll(HttpServletRequest request, HttpServletResponse response) {
//        bookDao.findAll(request,response);
//    }

    @Override
    public void findAll(HttpServletRequest request, HttpServletResponse response) {
        bookDao.findAll(request,response);
    }

    @Override
    public void del(HttpServletRequest request, HttpServletResponse response) {
        bookDao.del(request,response);
    }

    @Override
    public void update(HttpServletRequest request, HttpServletResponse response) {
        bookDao.update(request,response);
    }
    /**New**/


    @Override
    public PageData findAll(int pageNum, int pageSize) {
        return bookDao.findAll(pageNum,pageSize);
    }


    /**New**/


}
